#include "widget.h"

Widget::Widget(QWidget *parent)
: QWidget(parent)
{
    this->resize(600,400);
    QPushButton* btn=new QPushButton("按钮",this);
    btn->move(400,200);
    textEdit=new QTextEdit("text",this);
    textEdit->resize(200,200);
    textEdit->move(0,200);

    connect(btn,&QPushButton::clicked,[&](){
    textEdit->setText("Hello, World!");
    });
}


Widget::~Widget()
{

}
